package com.hanhai.zrb.model.project;
import java.io.Serializable;

import org.apache.commons.lang3.StringUtils;

import com.alibaba.fastjson.annotation.JSONField;
import com.hanhai.zrb.model.project.enums.ProReasonTypeEnums;

/**
 * 
 * 项目勘察信息登记
 * 
 **/
@SuppressWarnings("serial")
public class ProjectInspect implements Serializable {

	/**主键，自增**/
	private Integer autoId;

	/**用户id**/
	private Long userId;

	/**项目id**/
	private Integer projectId;

	/**项目名称，展示和模糊搜索用**/
	private String projectName;

	/**看地时间**/
	private java.util.Date inspectTime;

	/**联系人**/
	private String contact;

	/**同行人数**/
	private Integer personNum;

	/**联系电话**/
	private String telphone;

	/**公司名称**/
	private String companyName;

	/**数据录入时间**/
	
	@JSONField (format="yyyy-MM-dd HH:mm:ss")
	private java.util.Date insertTime;

	/**实际勘察时间**/
	@JSONField (format="yyyy-MM-dd HH:mm:ss")
	private java.util.Date inspectTimeActual;

	/**实际勘察人数**/
	private Integer personNumActual;

	/**招商部陪同人员**/
	private String accomPersons;

	/**数据更新时间**/
	@JSONField (format="yyyy-MM-dd HH:mm:ss")
	private java.util.Date updateTime;

	/**勘察状态，0：取消，1：申请，2：确认，3：完成**/
	private Integer inspectStatus;

	/**取消原因**/
	private String cancelReason;
	
	/**取消原因**/
	private Integer cancelReasonType;
	
	private String reasonTypeZH;

	public String getReasonTypeZH() {
		return ProReasonTypeEnums.getValueByCode(null==this.cancelReasonType?0:this.cancelReasonType);
	}

	/**取消人员，复合结构(身份|取消人id)**/
	private String cancelPerson;
	
	private Integer oldStatus;
	private String surveyResult; //勘察结果
	


	public String getSurveyResult() {
		return surveyResult;
	}

	public void setSurveyResult(String surveyResult) {
		this.surveyResult = surveyResult;
	}

	public void setAutoId(Integer autoId){
		this.autoId = autoId;
	}

	public Integer getAutoId(){
		return this.autoId;
	}

	public void setProjectId(Integer projectId){
		this.projectId = projectId;
	}

	public Integer getProjectId(){
		return this.projectId;
	}

	public void setInspectTime(java.util.Date inspectTime){
		this.inspectTime = inspectTime;
	}

	public java.util.Date getInspectTime(){
		return this.inspectTime;
	}

	public void setContact(String contact){
		this.contact = contact;
	}

	public String getContact(){
		return this.contact;
	}

	public void setPersonNum(Integer personNum){
		this.personNum = personNum;
	}

	public Integer getPersonNum(){
		return this.personNum;
	}

	public void setTelphone(String telphone){
		this.telphone = telphone;
	}

	public String getTelphone(){
		return this.telphone;
	}

	public void setCompanyName(String companyName){
		this.companyName = companyName;
	}

	public String getCompanyName(){
		return this.companyName;
	}

	public void setInsertTime(java.util.Date insertTime){
		this.insertTime = insertTime;
	}

	public java.util.Date getInsertTime(){
		return this.insertTime;
	}

	public void setInspectTimeActual(java.util.Date inspectTimeActual){
		this.inspectTimeActual = inspectTimeActual;
	}

	public java.util.Date getInspectTimeActual(){
		return this.inspectTimeActual;
	}

	public void setPersonNumActual(Integer personNumActual){
		this.personNumActual = personNumActual;
	}

	public Integer getPersonNumActual(){
		return this.personNumActual;
	}

	public void setAccomPersons(String accomPersons){
		this.accomPersons = accomPersons;
	}

	public String getAccomPersons(){
		return this.accomPersons;
	}

	public void setUpdateTime(java.util.Date updateTime){
		this.updateTime = updateTime;
	}

	public java.util.Date getUpdateTime(){
		return this.updateTime;
	}

	public void setInspectStatus(Integer inspectStatus){
		this.inspectStatus = inspectStatus;
	}

	public Integer getInspectStatus(){
		return this.inspectStatus;
	}

	public Integer getOldStatus() {
		return oldStatus;
	}

	public void setOldStatus(Integer oldStatus) {
		this.oldStatus = oldStatus;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	public String getCancelReason() {
		return cancelReason;
	}

	public void setCancelReason(String cancelReason) {
		this.cancelReason = cancelReason;
	}

	public String getCancelPerson() {
		return cancelPerson;
	}

	public void setCancelPerson(String cancelPerson) {
		this.cancelPerson = cancelPerson;
	}
	public Integer getCancelReasonType() {
		return cancelReasonType;
	}

	public void setCancelReasonType(Integer cancelReasonType) {
		this.cancelReasonType = cancelReasonType;
	}

}
